import java.util.Scanner;


public class userFunction extends Function {

	public userFunction(double norm) {
		super(norm);
	}

	@Override
	public Complex getVal(int i) {
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter f("+i+") real part: ");
		double re = sc.nextDouble();
		System.out.println("Enter f("+i+") imaginary part: ");
		double im = sc.nextDouble();
		Complex z = new Complex(re, im);
		return z;
	}
}